package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import com.ruicar.afs.cloud.common.core.enums.AfsBaseEnum;
import com.ruicar.afs.cloud.common.core.enums.annotations.AfsEnum;

/**
 * <p>Description: 业务类型枚举</p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-06-02 18:30
 */
public enum BusinessTypeEnum implements AfsBaseEnum {

    @AfsEnum(key = "01", desc = "新车", mapping = {"afs-case=01", "afs-contract=newCar"})
    NEW_CAR("01", "新车"),
    @AfsEnum(key = "02", desc = "二手车", mapping = {"afs-case=02", "afs-contract=oldCar"})
    OLD_CAR("02", "二手车"),
    @AfsEnum(key = "03", desc = "挂牌车", mapping = {"afs-case=03", "afs-contract="})
    PLATE("03", "挂牌车");

    BusinessTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
